package cn.soso.entity;

public class ModelCard {
    private String cardNumber;//卡号
    private String userName;//用户名
    private String passWord;//用户密码
    private SerPackage serPackage;//所属套餐
    private double consumAmount;//当月消费金额
    private double money;//账户余额
    private int realTalkTime;//实际通话时长（分钟）
    private int realISMSCount;//实际发短信条数（条）
    private int realFlow;//实际上网流量

    public ModelCard() {
    }
    public ModelCard(String userName, String passWord, String cardNumber, SerPackage serPackage, double consumAmount, double money) {
        super();
        this.userName = userName;
        this.passWord = passWord;
        this.cardNumber = cardNumber;
        this.serPackage = serPackage;
        this.consumAmount = consumAmount;
        this.money = money;
    }
    public ModelCard(String cardNumber, String userName, String passWord, SerPackage serPackage, double consumAmount, double money, int realTalkTime, int realISMSCount, int realFlow) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.serPackage = serPackage;
        this.consumAmount = consumAmount;
        this.money = money;
        this.realTalkTime = realTalkTime;
        this.realISMSCount = realISMSCount;
        this.realFlow = realFlow;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public SerPackage getSerPackage() {
        return serPackage;
    }

    public void setSerPackage(SerPackage serPackage) {
        this.serPackage = serPackage;
    }

    public double getConsumAmount() {
        return consumAmount;
    }

    public void setConsumAmount(double consumAmount) {
        this.consumAmount = consumAmount;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getRealTalkTime() {
        return realTalkTime;
    }

    public void setRealTalkTime(int realTalkTime) {
        this.realTalkTime = realTalkTime;
    }

    public int getRealISMSCount() {
        return realISMSCount;
    }

    public void setRealISMSCount(int realISMSCount) {
        this.realISMSCount = realISMSCount;
    }

    public int getRealFlow() {
        return realFlow;
    }

    public void setRealFlow(int realFlow) {
        this.realFlow = realFlow;
    }

    //显示信息
    public void showMsg(){
        System.out.println("卡号："+this.cardNumber+" 用户名："+this.userName+" 当前余额："+this.money);
        this.serPackage.showInfo();
    }
}